import { Widget } from "./widget";


export class Label extends Widget {

    static {
        globalThis.__Label__ = new Label();
    }

    static create(): Label {
        return Deno.core.ops.opCreateLabel();
    }

    get text() {
        return Deno.core.ops.opGetLabelText(this);
    }

    set text(str: string) {
        Deno.core.ops.opSetLabelText(this, str);
    }


}